﻿using System;
using System.ComponentModel.DataAnnotations;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 用户无法操作表
    /// </summary>
    public partial class SysLog
    {
        /// <summary>
        /// 日志表ID
        /// </summary>
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 错误日志=0,登录=1,注销=10,新建=100,编辑=200,删除=300,查询=500,导出=600  错误日志记录到LogForNet里面
        /// </summary>
        public EnumLogType EnumLogType { get; set; }

        /// <summary>
        /// 表名
        /// </summary>
        public string TblName { get; set; }

        /// <summary>
        /// 主键ID
        /// </summary>
        public int? TblID { get; set; }

        /// <summary>
        /// 提交的值
        /// </summary>
        public string PostVal { get; set; }

        /// <summary>
        /// 之前的值
        /// </summary>
        public string BeforeVal { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        public string IPAddress { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        public int? SysCustomerID { get; set; }

        /// <summary>
        /// 创建人 员工ID
        /// </summary>
        public int? SysEmployeeID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// GetUrl 一般错误日志才去记录 忽略这三个字段
        /// </summary>
        public string GetUrl { get; set; }

        /// <summary>
        /// PostForm 一般错误日志才去记录 忽略这三个字段
        /// </summary>
        public string PostForm { get; set; }

        /// <summary>
        /// UserAgent 一般错误日志才会去记录 忽略这三个字段
        /// </summary>
        public string UserAgent { get; set; }
    }
}
